package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/8/2 下午8:53
 */
public class ResultsEntity implements Parcelable {
    /**
     * num : 1
     * user : 588
     * AnswerRight : 543
     * CorrectRate : 92.35
     * UserAnswer : A
     * row : 错误
     * analysis : 4257
     */

    private String num;//第几题
    private String user;//答题人数
    private String AnswerRight;//回答正确人数
    private String CorrectRate;//正确率
    private String UserAnswer;//用户答案
    private String row;//正确与否
    private String analysis;//解析id

    public String getNum() { return num;}

    public void setNum(String num) { this.num = num;}

    public String getUser() { return user;}

    public void setUser(String user) { this.user = user;}

    public String getAnswerRight() { return AnswerRight;}

    public void setAnswerRight(String AnswerRight) { this.AnswerRight = AnswerRight;}

    public String getCorrectRate() { return CorrectRate;}

    public void setCorrectRate(String CorrectRate) { this.CorrectRate = CorrectRate;}

    public String getUserAnswer() { return UserAnswer;}

    public void setUserAnswer(String UserAnswer) { this.UserAnswer = UserAnswer;}

    public String getRow() { return row;}

    public void setRow(String row) { this.row = row;}

    public String getAnalysis() { return analysis;}

    public void setAnalysis(String analysis) { this.analysis = analysis;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.num);
        dest.writeString(this.user);
        dest.writeString(this.AnswerRight);
        dest.writeString(this.CorrectRate);
        dest.writeString(this.UserAnswer);
        dest.writeString(this.row);
        dest.writeString(this.analysis);
    }

    public ResultsEntity() {}

    protected ResultsEntity(Parcel in) {
        this.num = in.readString();
        this.user = in.readString();
        this.AnswerRight = in.readString();
        this.CorrectRate = in.readString();
        this.UserAnswer = in.readString();
        this.row = in.readString();
        this.analysis = in.readString();
    }

    public static final Creator<ResultsEntity> CREATOR = new Creator<ResultsEntity>() {
        @Override
        public ResultsEntity createFromParcel(Parcel source) {return new ResultsEntity(source);}

        @Override
        public ResultsEntity[] newArray(int size) {return new ResultsEntity[size];}
    };
}
